/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.googlecode.ivybeans.module.completion.ivyfiles;

import com.googlecode.ivybeans.module.completion.IvyCompletionProvider;
import org.apache.ivy.Ivy;
import org.apache.ivyde.common.completion.IvyCodeCompletionProcessor;
import org.apache.ivyde.common.ivyfile.IvyModuleDescriptorModel;
import org.apache.ivyde.common.model.IvyModelSettings;

/**
 * Completion provider for Ivy files, complementing schema based completion 
 * implemented by netbeans + IvyFileCompletionModelProvider.
 * <p>
 * This completion provider is responsible for what can't be deduced by schema 
 * only, like repository aware completion.
 * </p>
 * 
 * @author Xavier Hanin
 */
public class IvyFileCompletionProvider extends IvyCompletionProvider {

    @Override
    protected IvyCodeCompletionProcessor getCodeCompletionProcessor(
            Ivy ivy, IvyModelSettings settings) {
        return new IvyCodeCompletionProcessor(new IvyModuleDescriptorModel(settings));
    }
}
